﻿using CuaHangLego.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using CuaHangLego.DataAccess;

namespace CuaHangLego.Bussiness.Parser
{
    public class ChuDeParser
    {

        public static ChuDe Parse(SqlDataReader sdata)
        {
            ChuDe sp = new ChuDe();
            sp.MaSo = int.Parse(sdata["ID"].ToString());
            sp.Ten = sdata["Ten"].ToString();
            sp.MoTa = sdata["MoTa"].ToString();
            return sp;
        }
    }
}
